package com.wang.admin.controller;

import com.wang.admin.api.model.AdLabel;
import com.wang.admin.service.AdLabelService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * AdLabel接口
 *
 * @author WN
 * @date：2024/03/06 20:48
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/adLabel")
public class AdLabelController {

    private final AdLabelService adLabelService;

    @PostMapping("/api/add")
    public Integer add(@RequestBody AdLabel adLabel){
        return adLabelService.add(adLabel);
    }

}
